<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/css/login.css">
    <title>登录页面</title>
</head>
<body class="login-wrap">
    <div class="login-container">
        <form class="login-form" action="/manager/login" method="post">
            <div class="input-group">
                <input type="text" id="username" name="username" class="input-field">
                <label for="username" class="input-label">
                    <span class="label-title">用户名</span>
                </label>
            </div>
            <div class="input-group">
                <input type="password" id="password" name="password" class="input-field">
                <label for="password" class="input-label">
                    <span class="label-title">密码</span>
                </label>
            </div>
            <span id="error" style="color: red" th:text="${error}"></span>
            <button type="submit" class="login-button" id="login">登录<i class="ai ai-enter"></i></button>
        </form>
    </div>
</body>
<script src="/lib/jquery/jquery-2.1.1.min.js"></script>
<script src="/lib/layui/layui.js"></script>
<script src="/js/index.js" data-main="login"></script>
<script type="text/javascript">
    setTimeout(function () {
        document.getElementById("error").style.display="none";
    },4000);
</script>
</html>